From 0b7989bf3d5022b48d209576ef8b6044fb126742 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 24 Nov 2005 15:08:27 +0100 Subject: [PATCH] Remove unused 'nr_recs' field from trace-buffer header structure. This also happens to ensure correct t_rec alignment on ia64. A better layout for trace buffers will be coming soon. Signed-off-by: Keir Fraser --- xen/common/trace.c | 1 - xen/include/public/trace.h | 1 - 2 files changed, 2 deletions(-) diff --git a/xen/common/trace.c b/xen/common/trace.c index da359b5908..d8b2fad1ed 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -89,7 +89,6 @@ static int alloc_trace_bufs(void) { buf = t_bufs[i] = (struct t_buf *)&rawbuf[i*opt_tbuf_size*PAGE_SIZE]; buf->cons = buf->prod = 0; - buf->nr_recs = nr_recs; t_recs[i] = (struct t_rec *)(buf + 1); } diff --git a/xen/include/public/trace.h b/xen/include/public/trace.h index cdcf447c10..b9f139444e 100644 --- a/xen/include/public/trace.h +++ b/xen/include/public/trace.h @@ -74,7 +74,6 @@ struct t_rec { struct t_buf { unsigned int cons; /* Next item to be consumed by control tools. */ unsigned int prod; /* Next item to be produced by Xen. */ - unsigned int nr_recs; /* Number of records in this trace buffer. */ /* 'nr_recs' records follow immediately after the meta-data header. */ }; -- 2.30.2